<?php

namespace App\Models;


class Oauth extends Base
{
    public function getCardImgAttribute() {
        $imglist = explode('#', $this->attributes['card_img']);
        return array_map(function ($item) {
            return ['pic' => $item, 'url' => config('url.domain') . $item];
        }, $imglist);
    }
}
